﻿using UnityEngine;
using System.Collections;

public class BabyController : MonoBehaviour
{
/* Legacy
	float sleepiness = 0f; // The sleep percentage. 0 = awake, 1 = asleep, (0.5 = sleepy)

	float happiness = 0f; // The happiness value. -1 = crying, 0 = relaxed, 1 = laughing

	public float sadnessStart = -0.5f; 	// baby sad if happiness < sadnessStart
	public float happinessStart = 0.5f;	// baby happy if happyness > happinessStart
*/

	MoodController moodController;

	// Use this for initialization
	void Start ()
	{
		moodController = Camera.main.GetComponent<MoodController>();	
		
		moodController.AddMoodChangedCallback(ChangeMood);

	}

	public void OnDisable()
	{
		moodController.RemoveMoodChangedCallback(ChangeMood);
	}
	

	// Update is called once per frame
	void Update ()
	{

	}


	protected void ChangeMood( MoodController.MoodState mood)
	{
		// change graphics
	}

}
